<?php
/**
 * Created by PhpStorm.
 * User: yys
 * Date: 2016/11/17
 * Time: 17:27
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class ProductTempRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' => 'api',
            'prefix' => 'api/product-temp','namespace'=>'Api'], function ($router) {
            $router->post('get-creation-masks', [ 'uses' => 'ProductTempController@creationMasks']);
            $router->post('get-product-temp-by-temp-id', [ 'uses' => 'ProductTempController@getAuthoringTempByTempId']);
            $router->post('get-product-temp-tags', [ 'uses' => 'ProductTempController@getAuthoringTempTagsByTempCategoryId']);
            $router->post('get-product-temps-by-tag-id', [ 'uses' => 'ProductTempController@getAuthoringTempsByTempTagId']);
            $router->post('product-basic-info', [ 'uses' => 'ProductTempController@productBasicInfo']);
            $router->post('product-temp-info', [ 'uses' => 'ProductTempController@productTempInfo']);
        });
    }
}